package database

import "errors"

// 数据库相关错误定义
var (
	ErrNotConnected        = errors.New("database not connected")
	ErrConnectionExists    = errors.New("connection already exists")
	ErrConfigNotFound      = errors.New("database config not found")
	ErrInvalidConfig       = errors.New("invalid database config")
	ErrUnsupportedDatabase = errors.New("unsupported database type")
	ErrInvalidQuery        = errors.New("invalid query")
	ErrTransactionFailed   = errors.New("transaction failed")
	ErrConnectionFailed    = errors.New("failed to connect to database")
	ErrPasswordDecryption  = errors.New("failed to decrypt password")
	ErrPasswordEncryption  = errors.New("failed to encrypt password")
	ErrConfigSave          = errors.New("failed to save config")
	ErrConfigLoad          = errors.New("failed to load config")
	ErrDriverNotFound      = errors.New("database driver not found")
	ErrPoolFull            = errors.New("connection pool is full")
	ErrInvalidCredentials  = errors.New("invalid database credentials")
	ErrDatabaseNotFound    = errors.New("database not found")
	ErrTableNotFound       = errors.New("table not found")
	ErrColumnNotFound      = errors.New("column not found")
	ErrIndexNotFound       = errors.New("index not found")
)
